public class Tset {
    public static void main(String[] args) {
        //System.out.println("Hello World");
        //int i = 10;

        //char ch = 'a';

        //float f = 3.14f;//注意如果不加f,编译器会默认为double类型

        //double d = 3.14;

        //short s = 20;

        //boolean flag = true;//只能取true或者flag

        //long l = 30L;


        //System.out.println("整型数据的取值范围："+Integer.MIN_VALUE+" ~ "+Integer.MAX_VALUE );
        //System.out.println("短整型数据的取值范围："+Short.MIN_VALUE+" ~ "+Short.MIN_VALUE);
        //System.out.println("字节型数据的取值范围："+Byte.MIN_VALUE+" ~ "+Byte.MAX_VALUE);
        /*char a = '我', b = '要', c = '学', d = '编' , e = '程';
        System.out.print(a);
        System.out.print(b);
        System.out.print(c);
        System.out.print(d);
        System.out.print(e);*/


        //byte a = 10;
        //byte b = 20;
        //byte c =(byte)(a + b);
        //System.out.println(c);

        /*String s1 = "hello ";
        String s2 = "world";
        System.out.println(s1);
        System.out.println(s2);
        System.out.println(s1+s2); // s1+s2表示：将s1和s2进行拼接
*/
        /*int num = 10;
        //方法1
        String str1 = num + "";
        //方法2
        String str2 = String.valueOf(num);
        System.out.println(str1);
        System.out.println(str2);*/

        //String str = "100";
        //int num = Integer.parseInt(str);
        //System.out.println(num);

        /*int a = 20;
        int b = 10;
        System.out.println(a + b); // 30
        System.out.println(a - b); // 10
        System.out.println(a * b); // 200
        System.out.println(a / b); // 2
        System.out.println(a % b); // 0 --->模运算相当于数学中除法的余数*/


        /*System.out.println(10 % 3);
        System.out.println(10 % (-3));
        System.out.println((-10) % 3);
        System.out.println((-10) % (-3));*/


        int a = 10;
        int b = 20;
        System.out.println(a == b); // false
        System.out.println(a != b); // true
        System.out.println(a < b); // true
        System.out.println(a > b); // false
        System.out.println(a <= b); // true
        System.out.println(a >= b); // false

    }
}
